// testmusico.cpp : main project file.

#include "stdafx.h"

using namespace System;
using namespace libmusico;

int main(array<System::String ^> ^args)
{
	Message^ msg = gcnew Message();
	Console::WriteLine(msg->getMIDI().ToString());
	
	Command^ cmd = gcnew Command();
	cmd->addMessage(gcnew String("a"), msg);
	cmd->send(0,1000);

	Message^ mmm = gcnew Message(1,144,70,60);
	cmd->addMessage(gcnew String("b"), mmm);
	cmd->send(0);
	cmd->send(0,1000);

	cmd->writeTo("test.xml",Convert::ToString(0));

	Command^ c = gcnew Command();
	c->loadFrom("test.xml");

	c->send(0);
	Console::WriteLine(c->print());

    return 0;
}
